package top.dancun.easteacher.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.dancun.common.utils.PageUtils;
import top.dancun.common.utils.Query;
import top.dancun.easteacher.dao.TeacherStyleDao;
import top.dancun.easteacher.entity.TeacherStyleEntity;
import top.dancun.easteacher.service.TeacherStyleService;

import java.util.Map;


@Service("teacherStyleService")
public class TeacherStyleServiceImpl extends ServiceImpl<TeacherStyleDao, TeacherStyleEntity> implements TeacherStyleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TeacherStyleEntity> page = new Query<TeacherStyleEntity>().getPage(params);

        page = this.baseMapper.list(page);

        return new PageUtils(page);
    }

}